
import os

try:
    # file = open("text.txt","r")
    with open("text.txt","r") as file:
        print(file.readline())
except:
    print("open file failed")

data = [6,4,7,3,8,2,1,5]
data.sort()
print(data)
#for val in data:
#    print(val)

strNum = "78"
num = int(strNum)
print(num-10)

strNum = str(num)
strNum += "_jlf"
print(strNum)
print(type(strNum))
print(type(num))

del  data[2:6]
print(data)